package com.lap.auth.adapter.driving.query.user.po;

import com.lap.framework.common.po.AbstractPo;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 查询返回包含组织，岗位相关的信息
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserWithOrgPo extends AbstractPo {

  private Integer id;
  private String userName;
  private String fullName;
  private String email;
  private String orgPath;
  private Integer jobId;
  private Integer status;
  private String remark;
  private LocalDate termValidity;
  private Long version;
  private Job job;

  @Data
  public static class Job implements Serializable {
    @Serial private static final long serialVersionUID = 1076054191763812760L;

    private Integer id;
    private String name;
  }
}
